package com.zkt.subject.domain.convert;

import com.zkt.subject.infra.entity.SubjectInfoBO;
import com.zkt.subject.domain.entity.SubjectOptionBO;
import com.zkt.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 赵开泰
 * @program jc-club
 * @date 2024/10/5
 * @description 题目信息的实体类型转换器
 **/

@Mapper
public interface SubjectInfoConverter {
	
	SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);
	
	SubjectInfo convertBoToInfo(SubjectInfoBO subjectInfoBO);
	
	SubjectInfoBO convertOptionAndInfoToBo(SubjectOptionBO subjectOptionBO, SubjectInfo subjectInfo);
	
	List<SubjectInfoBO> convertListInfoToBo(List<SubjectInfo> subjectInfoList);
}
